package com.j2eefast.framework.code.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 序列号管理
 * pms_test_project
 * @author: summer
 * @date 2021-05-29 10:28
 */
@Data
@TableName("pms_serial")
public class SerialEntity extends BaseEntity{

    /** 主键 */
    @TableId(value = "id",type = IdType.INPUT)
    private Long id;

    /** 软删除 */
    @TableField(value = "del_flag")
    private int delFlag;

    /** 编号类型 */
    @TableField(value = "code_type")
    private String codeType;

    /**名称*/
    @TableField(value = "name")
    private String name;
    /** 编号规则 */
    @TableField(value = "code_rule")
    private String codeRule;

    /** 状态 */
    @TableField(value = "state")
    private String state;
    /** 允许最小值 */
    @TableField(value = "seq_start")
    private Long seqStart;

    /** 允许最大值 */
    @TableField(value = "seq_end")
    private Long seqEnd;
    /** 当前值 */
    @TableField(value = "current_value")
    private Long currentValue;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "update_time")
    private Date updateTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "create_by")
    private String createBy;

    /** 更新人 */
    @TableField(value = "update_by")
    private String updateBy;

    /** 备注 */
    @TableField(value = "remark")
    private String remark;
















}
